
{{ header }}{{ column_left }}
<div id="content">
    <div class="page-header">
        <div class="container-fluid">

            <div class="pull-right">
                <button type="submit" form="form-module" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i></button>
                <a href="{{ action.cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a></div>
            <h1>{{ heading_title }}</h1>

            <ul class="breadcrumb">
                {% for breadcrumb in breadcrumbs %}
                    <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
                {% endfor %}
            </ul>

        </div>
    </div>
    <div class="container-fluid">
        {% if error.permission %}

            <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_permission }}
                <button type="button" class="close" data-dismiss="alert">&times;</button>
            </div>

        {% elseif error|length > 0 %}
            <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}
                <button type="button" class="close" data-dismiss="alert">&times;</button>
            </div>
        {% endif %}

        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_edit }}</h3>
            </div>
            <div class="panel-body">
                <form action="{{ action.save }}" method="post" enctype="multipart/form-data" id="form-module" class="form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="input-message">{{ entry_name }}</label>
                        <div class="col-sm-10">
                            <input type="text" name="module_download_app_name" value="{{ module_download_app_name }}" placeholder="{{ placeholder_name }}" id="input-message" class="form-control" />
                            {% if error.module_download_app_name  %}
                                <div class="text-danger">{{ error_name }}</div>
                            {% endif %}
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="input-message">{{ entry_android_url }}</label>
                        <div class="col-sm-10">
                            <input type="text" name="module_download_app_android_url" value="{{ module_download_app_android_url }}" placeholder="{{ placeholder_android_url }}" id="input-message" class="form-control" />
                            {% if error.module_download_app_android_url %}
                                <div class="text-danger">{{ error_android_url }}</div>
                            {% endif %}
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="input-message">{{ entry_ios_url }} </label>
                        <div class="col-sm-10">
                            <input type="text" name="module_download_app_ios_url" value="{{ module_download_app_ios_url }}" placeholder="{{ placeholder_ios_url }}" id="input-message" class="form-control" />
                            {% if error.module_download_app_ios_url %}
                                <div class="text-danger">{{ error_ios_url }}</div>
                            {% endif %}
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="input-message">
                            <span data-toggle="tooltip" title="{{ help_image }}">
                                {{ entry_icon }}
                            </span>
                        </label>
                        <div class="col-sm-10">
                            <a href="" id="module_download_app_icon" data-toggle="image" class="img-thumbnail">
                                <img src="{{ helper.image_resize(module_download_app_icon) }}" alt="" title="" data-placeholder="{{ helper.image_resize() }}"/>
                            </a>
                            <input type="hidden" name="module_download_app_icon"
                                   value="{{ module_download_app_icon }}" id="module_download_app_icon"/>
                            {% if error.module_download_app_icon %}
                                <div class="text-danger">{{ error_icon }}</div>
                            {% endif %}
                        </div>
                    </div>



                    {#<div class="form-group custom_form">#}
                        {#<label class="col-sm-2 control-label" for="input-message">自定义</label>#}
                        {#<div class="col-sm-3">#}
                            {#<input type="text" name="module_download_app_ios_url" value="{{ module_download_app_ios_url }}" placeholder="{{ placeholder_ios_url }}" id="input-message" class="form-control" />#}
                            {#{% if error.ios_url %}#}
                                {#<div class="text-danger">{{ error_ios_url }}</div>#}
                            {#{% endif %}#}
                        {#</div>#}
                        {#<div class="col-sm-6">#}
                            {#<input type="text" name="module_download_app_ios_url" value="{{ module_download_app_ios_url }}" placeholder="{{ placeholder_ios_url }}" id="input-message" class="form-control" />#}
                            {#{% if error.ios_url %}#}
                                {#<div class="text-danger">{{ error_ios_url }}</div>#}
                            {#{% endif %}#}
                        {#</div>#}
                        {#<div class="col-sm-1">#}
                            {#<button class="dynamic_add" type="button" form="form-module" data-toggle="tooltip" title="添加" class="btn btn-primary">#}
                                {#<i class="fa fa-plus"></i>#}
                            {#</button>#}
                        {#</div>#}
                    {#</div>#}


                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="input-status">{{ entry_status }}</label>
                        <div class="col-sm-10">
                            <select name="module_download_app_status" id="input-status" class="form-control">
                                {% if module_download_app_status %}
                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                    <option value="0">{{ text_disabled }}</option>
                                {% else %}
                                    <option value="1">{{ text_enabled }}</option>
                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                {% endif %}
                            </select>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script>

    // $(function () {
    //     $(".dynamic_add")
    // })
</script>
{{ footer }}